﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="UrunIslemleri.aspx.cs" Inherits="BeniBastanYaratProject.Yonetim.UrunIslemleri" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
            margin-right: 0px;
            color: #FFFFFF;
            background-color: #99CCFF;
        }
    </style>
    <link href="../datepicker.css" rel="stylesheet" type="text/css" />
    <script src="../js/datepicker.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {

            $('#<%= txtsatistarih.ClientID %>').DatePicker({
                format: 'd/m/Y',
                date: '$(#<%= txtsatistarih.ClientID %>).val()',
                current: '$(#<%= txtsatistarih.ClientID %>).val()',
                starts: 1,
                position: 'r',
                onBeforeShow: function () {
                    $('#<%= txtsatistarih.ClientID %>').DatePickerSetDate($('#<%= txtsatistarih.ClientID %>').val(), true);
                },
                onChange: function (formated, dates) {
                    $('#<%= txtsatistarih.ClientID %>').val(formated);

                    $('#<%= txtsatistarih.ClientID %>').DatePickerHide();

                }
            });

        });
            
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main_CenterContent" runat="server">
    <table class="style1" __designer:mapid="321">
        <tr __designer:mapid="394">
            <td __designer:mapid="395">
                Resim Ekle:
            </td>
            <td __designer:mapid="396">
                <asp:Panel ID="Panel1" runat="server">
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                </asp:Panel>
            </td>
        </tr>
        <tr __designer:mapid="327">
            <td __designer:mapid="328">
                <b __designer:mapid="329">UrunAdi:</b>
            </td>
            <td __designer:mapid="32a">
                <asp:TextBox ID="txtUrunAdi" runat="server"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtUrunAdi" ErrorMessage="Urun Adi Bo&#351; B&#305;rak&#305;lamaz" 
                    Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="32c">
            <td __designer:mapid="32d">
                <b __designer:mapid="32e">UrunAciklamasi:</b>
            </td>
            <td __designer:mapid="32f">
                <asp:TextBox ID="txturunac&#305;klama" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="331">
            <td __designer:mapid="332">
                <b __designer:mapid="333">UrunBarkod:</b>
            </td>
            <td style="background-color: #99CCFF" __designer:mapid="334">
                <asp:TextBox ID="txtbarkod" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtbarkod" ErrorMessage="Urun Barkodu Bo&#351; B&#305;rak&#305;lamaz." 
                    Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="336">
            <td __designer:mapid="337">
                <b __designer:mapid="338">KategoriID:</b>
            </td>
            <td __designer:mapid="339">
                <asp:DropDownList ID="combakat" runat="server" DataSourceID="SqlDataSource4"
                    DataTextField="KategoriAdi" DataValueField="KategoriID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
                    SelectCommand="SELECT [KategoriID], [KategoriAdi] FROM [Kategoriler]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr __designer:mapid="33a">
            <td __designer:mapid="33b">
                <b __designer:mapid="33c">UrunSezonID:</b>
            </td>
            <td __designer:mapid="33d">
                <asp:DropDownList ID="combourunsezon" runat="server" DataSourceID="SqlDataSource5"
                    DataTextField="UrunSezonAciklama" DataValueField="UrunSezonID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
                    SelectCommand="SELECT [UrunSezonID], [UrunSezonAciklama] FROM [UrunSezonlari]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr __designer:mapid="33e">
            <td __designer:mapid="33f">
                <b __designer:mapid="340">SaglayiciID:</b>
            </td>
            <td __designer:mapid="341">
                <asp:DropDownList ID="combosaglayici" runat="server" DataSourceID="SqlDataSource6"
                    DataTextField="SaglayiciFirmaAdi" DataValueField="SaglayiciID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
                    SelectCommand="SELECT [SaglayiciID], [SaglayiciFirmaAdi] FROM [Saglayicilar]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr __designer:mapid="343">
            <td __designer:mapid="344">
                <b __designer:mapid="345">MarkaID:</b>
            </td>
            <td __designer:mapid="346">
                <asp:DropDownList ID="combomarkaid" runat="server" DataSourceID="SqlDataSource7"
                    DataTextField="MarkaFirmaAdi" DataValueField="MarkaID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
                    SelectCommand="SELECT [MarkaID], [MarkaFirmaAdi] FROM [Markalar]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr __designer:mapid="347">
            <td __designer:mapid="348">
                <b __designer:mapid="349">UrunCinsID:</b>
            </td>
            <td __designer:mapid="34a">
                <asp:DropDownList ID="comboUrunCins" runat="server" DataSourceID="SqlDataSource3"
                    DataTextField="UrunCinsAciklama" DataValueField="UrunCinsID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
                    SelectCommand="SELECT [UrunCinsID], [UrunCinsAciklama] FROM [UrunCinsleri]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr __designer:mapid="34b">
            <td __designer:mapid="34c">
                <b __designer:mapid="34d">UrunAlisFiyati:</b>
            </td>
            <td __designer:mapid="34e">
                <asp:TextBox ID="txtUrunAlisFiyati" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="350">
            <td __designer:mapid="351">
                <b __designer:mapid="352">UrunSatisFiyati:</b>
            </td>
            <td __designer:mapid="353">
                <asp:TextBox ID="txtUrunSatisFiyati" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="355">
            <td __designer:mapid="356">
                <b __designer:mapid="357">KDVOrani:</b>
            </td>
            <td __designer:mapid="358">
                <asp:TextBox ID="txtkdv" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="35f">
            <td __designer:mapid="360">
                <b __designer:mapid="361">UrunSatisaCikisTarihi:</b>
            </td>
            <td __designer:mapid="362">
                <asp:TextBox ID="txtsatistarih" runat="server" Width="186px"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="364">
            <td __designer:mapid="365">
                <b __designer:mapid="366">UrunSatistaMi:</b>
            </td>
            <td __designer:mapid="367">
                <asp:CheckBox ID="CheckBox1" runat="server" Text="Sat&#305;&#351;ta M&#305;?" />
            </td>
        </tr>
        <tr __designer:mapid="369">
            <td __designer:mapid="36a">
                <b __designer:mapid="36b">UrunListelensinMi:</b>
            </td>
            <td __designer:mapid="36c">
                <asp:CheckBox ID="CheckBox2" runat="server" Text="Listelensin mi?" />
            </td>
        </tr>
        <tr __designer:mapid="36e">
            <td __designer:mapid="36f">
                <b __designer:mapid="370">UrunOnaylandiMi:</b>
            </td>
            <td __designer:mapid="371">
                <asp:CheckBox ID="CheckBox3" runat="server" Text="Onayland&#305; M&#305;?" />
            </td>
        </tr>
        <tr __designer:mapid="373">
            <td __designer:mapid="374">
                <b __designer:mapid="375">UrunBirimID:</b>
            </td>
            <td __designer:mapid="376">
                <asp:DropDownList ID="combourun" runat="server" DataSourceID="LinqDataSource1" 
                    DataTextField="UrunBirimAdi" DataValueField="UrunBirimID">
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="BeniBastanYaratProject.DBBaglantiDataContext" 
                    EntityTypeName="" Select="new (UrunBirimID, UrunBirimAdi)" 
                    TableName="UrunBirimleris">
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr __designer:mapid="378">
            <td __designer:mapid="379">
                <b __designer:mapid="37a">UrunStok:</b>
            </td>
            <td __designer:mapid="37b">
                <asp:TextBox ID="txtUrunStok" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtUrunStok" ErrorMessage="Stok Adedi Bo&#351; B&#305;rak&#305;lamaz.." 
                    Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="37d">
            <td __designer:mapid="37e">
                <b __designer:mapid="37f">BedenTipID:</b>
            </td>
            <td __designer:mapid="380">
                <asp:DropDownList ID="combobeden" runat="server" DataSourceID="SqlDataSource1" DataTextField="BedenTipAciklama"
                    DataValueField="BedenTipID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BeniBastanYaratDBConnectionString %>"
                    SelectCommand="SELECT [BedenTipID], [BedenTipAciklama] FROM [BedenTipleri]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr __designer:mapid="382">
            <td __designer:mapid="383">
                <b __designer:mapid="384">BedenNo:</b>
            </td>
            <td __designer:mapid="385">
                <asp:TextBox ID="txtbedenno" runat="server"></asp:TextBox>
            &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtbedenno" ErrorMessage="Urun Bedeni Bo&#351; B&#305;rak&#305;lama.." 
                    Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="382">
            <td __designer:mapid="383">
                <asp:Button ID="btnEkle" runat="server" OnClick="btnEkle_Click1" Text="Ekle" />
            </td>
            <td __designer:mapid="385">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
